package com.tutu.service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * MasterService
 * Created by 涂奕恒 on 2018/10/19 0019 下午 4:35.
 */
public interface MasterService {

    // 登录
    Map<String, Object> loginIn(HttpServletRequest request, String account, String password);

    // 注销
    void loginOut(HttpServletRequest request);

    // 修改密码
    Map<String, Object> modifyPwd(HttpServletRequest request, String newPwd);

    // 查询（分页）
    Map<String, Object> pageByParams(Integer companyId, Integer status, String keyWord, Integer pageNum, Integer pageSize);

    // 查询详情
    Map<String, Object> getInfoById(Integer id);

    // 添加 or 修改
    Map<String, Object> saveInfo(HttpServletRequest request, Integer id, Integer roleId, Integer companyId, String account, String name, String password, String mobile, String email, Integer status);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    // 批量删除
    Map<String, Object> batchDel(HttpServletRequest request, String ids);

    // 更新管理员状态
    Map<String, Object> updateStatus(HttpServletRequest request, Integer id, Integer status);

    Map<String, Object> modifyMasterPwd(HttpServletRequest request, Integer id);
}